package com.zhang.apiboss.remote;

import com.zhang.internalcommon.dto.Car;
import com.zhang.internalcommon.dto.DriverCarBindingRelationship;
import com.zhang.internalcommon.dto.DriverUser;
import com.zhang.internalcommon.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 类功能描述
 *
 * @author Kye
 * @date 2025-04-12
 */
@FeignClient("service-driver-user")
public interface ServiceDriverUserClient {
	@PostMapping("/user")
	public ResponseResult addUser(@RequestBody DriverUser driverUser);

	@PutMapping("/user")
	public ResponseResult updateUser(@RequestBody DriverUser driverUser);

	@PostMapping("/car")
	public ResponseResult addCar(@RequestBody Car car);

	@PostMapping("/driver-car-binding-relationship/bind")
	public ResponseResult bind(@RequestBody DriverCarBindingRelationship driverCarBindingRelationship);

	@PostMapping("/driver-car-binding-relationship/unbind")
	public ResponseResult unbind(@RequestBody DriverCarBindingRelationship driverCarBindingRelationship);
}
